package foodmaterial.entity;

import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 * 食材分类
 */
public class FoodMaterialType implements Serializable {
    private static final long serialVersionUID = 8674905065526142451L;
    private Long id;
    @NotEmpty(message = "食材分类名称不能为空")
    @Length(max=50,message = "分类名称最长{max}字符")
    private String name; // '名称'
    private Boolean isCondiment ;
    private String db ;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Boolean getIsCondiment() {
        return isCondiment;
    }

    public void setIsCondiment(Boolean condiment) {
        this.isCondiment = condiment;
    }

    public String getDb() {
        return db;
    }

    public void setDb(String db) {
        this.db = db;
    }
}
